<?php
// 删除自己的评论
// header("content-type:text/html;charset=utf-8");
include_once("conn.php");

if(empty($_GET['id'])){
    die("<script>alert('非法访问！');window.location.href='../../index.php';</script>");
    exit;
}
$id = $_GET['id'];
$g_id = $_GET['g_id'];
$sql = "DELETE FROM tb_remark_info WHERE id = '".$id."'";
$result = mysqli_query($conn,$sql);
if($result){
    echo "<script>window.location.href='../u_show_goods.php?g_id=".$g_id."';</script>";
}else{
    echo "<script>alert('删除失败！');history.go(-1);</script>";
}
?>